#include "../../include/server.h"
#include "../../include/group_db.h"
#include "../qq_sqlite3/sql_user.h"
int main(int argc, char **argv) {
//    int i = 0;
//    group_t group = {.group_name="test"};
//    group_t *ret = select_group(group,&i);
//    while(i--) {
//        printf("grop:%s, %d",ret->group_name,ret->group_id);
//    }

    int port;
    if (argc < 2) {
        port = INT_PORT;
    } else if(argc == 2) {
        port = atoi(argv[1]);
    }
    printf("Usage: %d <port>,use 8080 \n", port);
    socket_bind(port,"127.0.0.1");
    return 0;
}
